projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b3be17
)
Do not try to retrieve userdata for dom0
author
Stefano Stabellini
<sstabellini@xensource.com>
Mon, 9 Aug 2010 16:20:39 +0000
(17:20 +0100)
committer
Stefano Stabellini
<sstabellini@xensource.com>
Mon, 9 Aug 2010 16:20:39 +0000
(17:20 +0100)
There is no userdata available regarding dom0, do not try to retrieve it
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/xl_cmdimpl.c
patch
|
blob
|
history
diff --git
a/tools/libxl/xl_cmdimpl.c
b/tools/libxl/xl_cmdimpl.c
index a2ccfe2c16a73d944b6db69c718fe9f0c41a07aa..638289ba125f0d4508fb876101ed3ba75af3570b 100644
(file)
--- a/
tools/libxl/xl_cmdimpl.c
+++ b/
tools/libxl/xl_cmdimpl.c
@@
-2127,6
+2127,9
@@
void list_domains_details(const libxl_dominfo *info, int nb_domain)
libxl_device_model_info dm_info;
for (i = 0; i < nb_domain; i++) {
+ /* no detailed info available on dom0 */
+ if (info[i].domid == 0)
+ continue;
rc = libxl_userdata_retrieve(&ctx, info[i].domid, "xl", &data, &len);
if (rc)
continue;